package com.simplesoftwares.client.library.mywidgets;

import com.google.gwt.user.datepicker.client.CalendarModel; 
import com.google.gwt.user.datepicker.client.DatePicker; 
import com.google.gwt.user.datepicker.client.DefaultCalendarView; 

public class DatePickerWithYearSelector extends DatePicker 
{ 

        public DatePickerWithYearSelector() 
        { 
                super(new MonthAndYearSelector(),new DefaultCalendarView(),new CalendarModel()) ; 
                MonthAndYearSelector monthSelector = (MonthAndYearSelector) this.getMonthSelector() ; 
                monthSelector.setPicker(this) ; 
                monthSelector.setModel(this.getModel()) ; 
        } 

        public void refreshComponents() 
        { 
                super.refreshAll() ; 
        } 

} 

